package com.xxx.excel;

import java.util.ArrayList;

/**
 * Excel读取规则
 */
public class ExcelRowReader {

	private int sheetStartNum; // 从第几个sheet读取
	private int sheetStopNum; // 截至第几个sheet
	private int startRow; // 从第几行读取
	private int stopRow; // 截至第几行
	private int startCell; // 从第几列读取
	private int stopCell; // 截至第几列

	public int getSheetStartNum() {
		return sheetStartNum;
	}

	public int getSheetStopNum() {
		return sheetStopNum;
	}

	public int getStartRow() {
		return startRow;
	}

	public int getStopRow() {
		return stopRow;
	}

	public int getStartCell() {
		return startCell;
	}

	public int getStopCell() {
		return stopCell;
	}

	public ExcelRowReader() {
		super();
	}

	// 自定义读取起始次序
	public ExcelRowReader(int sheetStartNum, int sheetStopNum, int startRow, int stopRow, int startCell, int stopCell) {
		super();
		this.sheetStartNum = sheetStartNum;
		this.sheetStopNum = sheetStopNum;
		this.startRow = startRow;
		this.stopRow = stopRow;
		this.startCell = startCell;
		this.stopCell = stopCell;
	}

	/**
	 * 业务逻辑实现方法
	 * 
	 * @param sheetIndex
	 * @param curRow
	 * @param rowlist
	 * @throws Exception
	 */
	public void getRows(final int sheetIndex, int curRow, ArrayList<String> rowlist, boolean isEndDoc)
			throws Exception {

	}

}